Skip to content

Fix intermediate way point arrival not triggered#1908

Merged
danesfeder merged 1 commit into
masterfrom
dan-arrival-waypoint
Apr 25, 2019
Merged

Fix intermediate way point arrival not triggered#1908
danesfeder merged 1 commit into
masterfrom
dan-arrival-waypoint

Conversation

@danesfeder
Copy link
Copy Markdown
Contributor

Description

Fixes #1904

  • I have added any issue links
  • I have added all related labels (bug, feature, new API(s), SEMVER, etc.)
  • I have added the appropriate milestone and project boards

Goal

Arrival state and listeners should be triggered for each way point along the route, not just the last one.

Implementation

Add a "previous" NavigationStatus to the processor that allows us to look at the route state only after it's been passed to the developer in a listener.

Screenshots or Gifs

Modified NavigationLauncherActivity to allow way points for the passed DirectionsRoute:

ezgif com-video-to-gif

Testing

Please describe the manual tests that you ran to verify your changes

  • I have tested locally (including SNAPSHOT upstream dependencies if needed)
  • I have tested via a test drive, or a simulation/mock location app
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

@danesfeder danesfeder added bug Defect to be fixed. ✓ ready for review labels Apr 24, 2019
@danesfeder danesfeder added this to the v0.37.0 milestone Apr 24, 2019
@danesfeder danesfeder self-assigned this Apr 24, 2019
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1908 into master will increase coverage by 0.89%.
The diff coverage is 90.9%.

@@             Coverage Diff              @@
##             master    #1908      +/-   ##
============================================
+ Coverage     35.04%   35.94%   +0.89%     
- Complexity     1060     1076      +16     
============================================
  Files           261      261              
  Lines          8848     8853       +5     
  Branches        667      667              
============================================
+ Hits           3101     3182      +81     
+ Misses         5475     5383      -92     
- Partials        272      288      +16

Copy link
Copy Markdown
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🚢 🚢 @danesfeder and thanks!

@danesfeder danesfeder merged commit 91d57d9 into master Apr 25, 2019
@danesfeder danesfeder deleted the dan-arrival-waypoint branch April 25, 2019 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Defect to be fixed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

onArrival doesn't get called if navigation is started with multiple stops

3 participants